import request from '@/utils/request'

// 查询信息列表
export function listsite(query, pageReq) {
  return request({
    url: '/ticket/site/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}
///ticket/site/all
export function listsiteAll(query, pageReq) {
  return request({
    url: '/ticket/site/all',
    method: 'post',
    data: query,
    params: pageReq
  })
}
// 查询信息详细
export function getsite(id) {
  return request({
    url: '/ticket/site/' + id,
    method: 'get'
  })
}

// 新增信息
export function addsite(data) {
  return request({
    url: '/ticket/site',
    method: 'post',
    data: data
  })
}

// /ticket/actor
export function updatesite(data) {
  return request({
    url: '/ticket/site',
    method: 'put',
    data: data
  })
}

// 删除信息 /ticket/actor/{id}
export function delsite(id) {
  return request({
    url: '/ticket/site/' + id,
    method: 'delete'
  })
}


